<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>show</title>
    <script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
</head>
<body>
     <button id="btn">点击</button>

<script>
    $(function () {
        $('#btn').click(function () {
            $.ajax({
                url:'http://localhost/EntranceGuard/public/index.php/checkqrcode',
                type:'post',
                data:{

                },
                success:function (data) {
                    console.log(data);
                }
            })
        })


    })

</script>
</body>
</html>